#include "Phase.h"

Phase::Phase(std::vector<RecordInfo>& recordInfors, int startTimeStep, int endTimeStep, std::string description, int phaseNum)
{
	m_phase.reserve(recordInfors.size());
	std::vector<RecordInfo>::iterator iter;
	for(iter = recordInfors.begin() + startTimeStep; iter < recordInfors.begin() + endTimeStep; iter++)
		m_phase.push_back(*iter);
	this->startTimeStep = startTimeStep;
	this->endTimeStep = endTimeStep;
	this->description = description;
	this->phaseNum = phaseNum;
}